Optimal. Leaf size=76 \[ \frac{(d+e x)^2 \left (a+b \tan ^{-1}(c x)\right )}{2 e}-\frac{b \left (d^2-\frac{e^2}{c^2}\right ) \tan ^{-1}(c x)}{2 e}-\frac{b d \log \left (c^2 x^2+1\right )}{2 c}-\frac{b e x}{2 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.061302, antiderivative size = 76, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.357, Rules used = {4862, 702, 635, 203, 260} \[ \frac{(d+e x)^2 \left (a+b \tan ^{-1}(c x)\right )}{2 e}-\frac{b \left (d^2-\frac{e^2}{c^2}\right ) \tan ^{-1}(c x)}{2 e}-\frac{b d \log \left (c^2 x^2+1\right )}{2 c}-\frac{b e x}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4862
Rule 702
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int (d+e x) \left (a+b \tan ^{-1}(c x)\right ) \, dx &=\frac{(d+e x)^2 \left (a+b \tan ^{-1}(c x)\right )}{2 e}-\frac{(b c) \int \frac{(d+e x)^2}{1+c^2 x^2} \, dx}{2 e}\\ &=\frac{(d+e x)^2 \left (a+b \tan ^{-1}(c x)\right )}{2 e}-\frac{(b c) \int \left (\frac{e^2}{c^2}+\frac{c^2 d^2-e^2+2 c^2 d e x}{c^2 \left (1+c^2 x^2\right )}\right ) \, dx}{2 e}\\ &=-\frac{b e x}{2 c}+\frac{(d+e x)^2 \left (a+b \tan ^{-1}(c x)\right )}{2 e}-\frac{b \int \frac{c^2 d^2-e^2+2 c^2 d e x}{1+c^2 x^2} \, dx}{2 c e}\\ &=-\frac{b e x}{2 c}+\frac{(d+e x)^2 \left (a+b \tan ^{-1}(c x)\right )}{2 e}-(b c d) \int \frac{x}{1+c^2 x^2} \, dx-\frac{(b (c d-e) (c d+e)) \int \frac{1}{1+c^2 x^2} \, dx}{2 c e}\\ &=-\frac{b e x}{2 c}-\frac{b \left (d^2-\frac{e^2}{c^2}\right ) \tan ^{-1}(c x)}{2 e}+\frac{(d+e x)^2 \left (a+b \tan ^{-1}(c x)\right )}{2 e}-\frac{b d \log \left (1+c^2 x^2\right )}{2 c}\\ \end{align*}
Mathematica [A] time = 0.0054695, size = 77, normalized size = 1.01 \[ a d x+\frac{1}{2} a e x^2-\frac{b d \log \left (c^2 x^2+1\right )}{2 c}+\frac{b e \tan ^{-1}(c x)}{2 c^2}+b d x \tan ^{-1}(c x)+\frac{1}{2} b e x^2 \tan ^{-1}(c x)-\frac{b e x}{2 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.024, size = 68, normalized size = 0.9 \begin{align*}{\frac{a{x}^{2}e}{2}}+adx+{\frac{b\arctan \left ( cx \right ){x}^{2}e}{2}}+b\arctan \left ( cx \right ) xd-{\frac{ebx}{2\,c}}-{\frac{bd\ln \left ({c}^{2}{x}^{2}+1 \right ) }{2\,c}}+{\frac{\arctan \left ( cx \right ) be}{2\,{c}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.48609, size = 96, normalized size = 1.26 \begin{align*} \frac{1}{2} \, a e x^{2} + \frac{1}{2} \,{\left (x^{2} \arctan \left (c x\right ) - c{\left (\frac{x}{c^{2}} - \frac{\arctan \left (c x\right )}{c^{3}}\right )}\right )} b e + a d x + \frac{{\left (2 \, c x \arctan \left (c x\right ) - \log \left (c^{2} x^{2} + 1\right )\right )} b d}{2 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.11601, size = 162, normalized size = 2.13 \begin{align*} \frac{a c^{2} e x^{2} - b c d \log \left (c^{2} x^{2} + 1\right ) +{\left (2 \, a c^{2} d - b c e\right )} x +{\left (b c^{2} e x^{2} + 2 \, b c^{2} d x + b e\right )} \arctan \left (c x\right )}{2 \, c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.730579, size = 87, normalized size = 1.14 \begin{align*} \begin{cases} a d x + \frac{a e x^{2}}{2} + b d x \operatorname{atan}{\left (c x \right )} + \frac{b e x^{2} \operatorname{atan}{\left (c x \right )}}{2} - \frac{b d \log{\left (x^{2} + \frac{1}{c^{2}} \right )}}{2 c} - \frac{b e x}{2 c} + \frac{b e \operatorname{atan}{\left (c x \right )}}{2 c^{2}} & \text{for}\: c \neq 0 \\a \left (d x + \frac{e x^{2}}{2}\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.22245, size = 122, normalized size = 1.61 \begin{align*} \frac{b c^{2} x^{2} \arctan \left (c x\right ) e + 2 \, b c^{2} d x \arctan \left (c x\right ) + a c^{2} x^{2} e + 2 \, a c^{2} d x - \pi b e \mathrm{sgn}\left (c\right ) \mathrm{sgn}\left (x\right ) - b c x e - b c d \log \left (c^{2} x^{2} + 1\right ) + b \arctan \left (c x\right ) e}{2 \, c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]